<template>
  <div class="button-outer">
    <div class="button-inner" @click="onClick">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "c-button",
  props: {
    type: {
      type: String,
      default: "info"
    },
    block: {
      type: Boolean,
      default: false
    },
    plain: {
      type: Boolean,
      default: false
    },
    hairline: {
      type: Boolean,
      default: false
    },
    margin: {
      type: Boolean,
      default: true
    },
    disabled: {
      type: Boolean,
      default: false
    },
    loading: {
      type: Boolean,
      default: false
    },
    round: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    onClick() {
      this.$emit("click");
    }
  }
};
</script>

<style lang="less" scoped>
.button-outer {
  display: flex;
  justify-content: center;
  margin: 40px;
}

.button-inner {
  width: 160px;
  height: 50px;
  background: #4663ff;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  color: #ffffff;
}
</style>
